<?php
/**
 * Created by PhpStorm.
 * User: robot
 * Date: 2018-04-27
 * Time: 02:53
 */

namespace app\base\model;


use think\Model;

class Borrow extends Model
{
    public function getBookidAttr($value)
    {
        return Books::get($value)->book_name;
    }

    public function getUseridAttr($value)
    {
        return User::get($value)->user_name;
    }
}